﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace XamlCleaner.Core.Pharser
{
    public class ReplacedDuplicatedNameSpaceListEventArgs : EventArgs
    {
        private List<DuplicatedNameSpace> dupCollection = new List<DuplicatedNameSpace>();

        public ReplacedDuplicatedNameSpaceListEventArgs(List<DuplicatedNameSpace> DuplicatedList)
        {
            if (DuplicatedList == null)
                throw new ArgumentNullException("DuplicatedList", "DuplicatedList is null.");
            this.dupCollection = DuplicatedList;
        }

        public ReadOnlyCollection<DuplicatedNameSpace> DuplicatedNameSpaceList
        {
            get
            {
                return new ReadOnlyCollection<DuplicatedNameSpace>(this.dupCollection);
            }
        }
    }
}
